package com.peiqi.oneisall.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 业务异常处理
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BusinessException extends RuntimeException{
    /**
     * code状态码
     */
    private Integer code;
    /**
     * 错误信息
     */
    private String messages;
    /**
     * 错误明细信息
     */
    private String detailMessage;

    public BusinessException(Integer code, String messages) {
        this.code = code;
        this.messages = messages;
    }


    public BusinessException() {
    }
}
